package com.example.gmall.search.pojo;

import lombok.Data;

import java.util.List;

/**
 * http://search.gmall.com/search?keyword=手机&brandId=1&categoryId=225&pageNum=1&pageSize=10&props=4:8G-12G
 * &priceFrom=1000&priceTo=5999&props=5:128G-256G&sort=4&store=0
 */
@Data
public class SearchParamVo {
    //搜索关键字
    private String keyword;
    //品牌id
    private List<Long> brandId;
    //分类id
    private List<Long> categoryId;
    //规格参数过滤条件
    private List<String> props;
    //排序条件，0-得分降序，1-价格降序，2-价格升序，3-销量降序，4-新品降序
    private Integer sort=0;

    //价格区间
    private Double priceFrom;
    private Double priceTo;
    //分页页码
    private Integer pageNum = 1;
    private final Integer pageSize = 20;
    //仅显示有货
    private Boolean store;
}
